﻿@{
    var userFavouriteReferences = ViewData.Model;

    <table>
    <thead>
        <h4>Favourite references</h4>
        <th>Name</th>
        <th>Type</th>
        <th>IsCached</th>
        <th>Book name</th>
        <th>Book author</th>
    </thead>
    @foreach (var userFavouriteReference in userFavouriteReferences)
    {
        <tr>
            <td>@userFavouriteReference.Reference.Name</td>
            <td>@userFavouriteReference.Reference.Type</td>
            <td>@userFavouriteReference.Reference.IsCached</td>
            <td>@userFavouriteReference.Reference.Book.Name</td>
            <td>@userFavouriteReference.Reference.Book.Author</td>
        </tr>    
    }

    </table>
  }
